package com.electric.action;

import java.util.Map;

import com.electric.base.BaseAction;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionContext;

/**
 * @author coffee
 *
 * 2011-5-22
 */
public class LogoutAction extends BaseAction {
	
	public String execute() throws Exception {

		Map session = ActionContext.getContext().getSession();
		session.remove("userName");
		
		return Action.SUCCESS;
	}
}
